
#ifndef XDNS_NAME_QUERY_H
#define XDNS_NAME_QUERY_H

#include "xdns-query.h"
#include <string>

class XdnsData;

class XdnsNameQuery : public XdnsQuery
{
public:
    XdnsNameQuery(const std::string& hostname,
                  XdnsListener* listener);
    virtual ~XdnsNameQuery();

    std::string GetHostname() const;

    /* See xdns-query.h for description. */
    virtual XdnsError ComposeQueryData(unsigned short requestId,
                                       XdnsData& data
                                       ) const;
    virtual void GetQuestion(XdnsQuestionInfo& question) const;

private:
    std::string m_hostname;
};

#endif  // XDNS_NAME_QUERY_H

